
//
//   text    data     bss     dec     hex filename
//   1056      44       0    1100     44c demo.elf
//
//   0x00000056                flash_init
//   0x00000132                flash_erase
//   0x00000256                flash_program
//   0x00000286                flash_read
//   0x000002b6                flash_get_info
//   0x000002d8                flash_erase_chip
//   0x00000300                flash_deinit
//   flash size 1M
//   flash sector size 4K
//
const unsigned char algo_hpm5300[] = 
{
    #include "algo_hpm5300.inc"
};

const struct algo_t hpm5300 =
{
    0,
    -1,
    algo_hpm5300,
    sizeof(algo_hpm5300),

    0x80000000,
    -1,
    0x100000,
    0x1000,

    0x00000056, // flash_init
    -1,
    0x00000300, // flash_deinit
    -1,
    0x00000132, // flash_erase
    -1,
    0x00000256, // flash_program
    -1,
    -1, //
    -1,
    0x000002d8, // flash_erase_chip
    -1,
    -1,
    -1,
    0x00000286, // flash_read
    -1,

    1056, // load_address + text
    -1,
    1100 + 100, // load_address + text + data + bss
    -1,
    6220 + 100, // load_address + text + data + bss + sector_size + 1024
    -1,

    {0x1000, 0x0},
};
